<?php

namespace app\middleware;

class CheckAdminUserSignIn
{
    public function handle($request, \Closure $next)
    {
        return boolval(cache('?admin_user_info')) == true ?
            $next($request) : redirect('/');
    }
}
